﻿<KCtl:PhoneDetailPageString xmlns:my="clr-namespace:Kiva7.Pages"   
    x:Class="Kiva7.Pages.LenderDetailPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                            xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        xmlns:KCtl="clr-namespace:Kiva7.Controls"

    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="696"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="PortraitOrLandscape"  Orientation="Portrait"
    shell:SystemTray.IsVisible="True" 
    Loaded="PhoneApplicationPageLoaded"
    ImageData="{Binding SingleData.Image}">

    
    <Grid x:Name="LayoutRoot" Background="Transparent">

        <KCtl:OrientedPivot x:Name="Pivot" Title="{Binding SingleData.Name}" 
                        LoadingPivotItem="PivotLoadingPivotItem">
            <controls:PivotItem x:Name="Lender" Header="{Binding Path=L.Lender, Source={StaticResource L}}">
                <my:LenderControl x:Name="lenderControl" />
            </controls:PivotItem>

            <controls:PivotItem x:Name="Loans" Header="{Binding Path=L.Loans, Source={StaticResource L}}">
                <my:LoansControl x:Name="loansControl" />
            </controls:PivotItem>
        </KCtl:OrientedPivot>
    </Grid>

    <KCtl:Bindable.ApplicationBar>
        <KCtl:BindableApplicationBar IsVisible="True" IsMenuEnabled="True" >

        </KCtl:BindableApplicationBar>
    </KCtl:Bindable.ApplicationBar>

</KCtl:PhoneDetailPageString>